package com.learn.project2.utils;

import java.util.ArrayList;
import java.util.List;

/**
 * \* Author: Valley
 * \* Date: 2022/1/11
 * \* Time: 23:43
 * \* Description:
 */

public class NumberUtils<T> {

    public List<T> number(List<T> list){
        List<T> list1 = new ArrayList<>();
        if (list1.size() >= 10){
            for (int i = 0; i < 10; i++) {
                list1.add(list.get(i));
            }
        }else {
            for (T t : list) {
                list1.add(t);
            }
        }
        return list1;
    }
}
